Skip to content

math: Precompute the fast log2/pow2 lookup tables

Adam Jackson requested to merge ajax/mesa:precompute into main

Since these pages now end up in .rodata this will reduce system memory usage by about 256k for each GL process past the first.

Remove util_init_math() since it's now useless.

Signed-off-by: Adam Jackson

I'm not sure if this is a net win. I think it is, but something like Windows' quad-fat binaries might not appreciate it.

Merge request reports