{'fraction_non_alphanumeric': 0.02176696542893726, 'fraction_numerical': 0.020486555697823303, 'mean_word_length': 4.430555555555555, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A powering unit for an OpenGL lighting engine

The OpenGL geometry pipeline lighting stage requires raising a number in the range [0, 1] to a power between [1, 128] to compute specular reflections and spotlights. The result need only be accurate to a number of bits related to the color depth of the output device. This paper describes a hardware implementation of such a powering unit based on a logarithm lookup table, a multiplier, and an inverse log table. The log lookup table is partitioned into subintervals to reduce table size. A synthesized design uses 84 k gates to achieve 10-bit accuracy with a latency of 9.62 ns in a 180 nm process. Although the system is tailored for the OpenGL application, the same principles can be applied to the design of other powering units.