shithub: opus

Download patch

ref: 6f06d3436dafe1f697eb86ace9cbfd645f0d2439
parent: 5d7b03669cb067c8848dfad642357c86e46e806a
author: Ralph Giles <[email protected]>
date: Mon Jul 25 09:26:57 EDT 2011

Document HAVE_LRINTF in the draft Makefile.

I've changed the grouping of the options to place the performance-
related ones after the more serious thread-safety options. This
is still somewhat confusing as with C99 on wants -DHAVE_LRINTF
but NOT -Drestrict=

I've also added leading whitespace to the comment lines to better
distinguish them from the commented-out code lines.

--- a/Makefile.draft
+++ b/Makefile.draft
@@ -1,17 +1,20 @@
 #################### COMPILE OPTIONS #######################
 
-#Uncomment this for fixed-point build
+# Uncomment this for fixed-point build
 #FIXED_POINT=1
 
-#If you have a C99 compiler, you don't need this
-CFLAGS += -Drestrict= 
-
-#It is strongly recommended to uncomment one of these
-#VAR_ARRAYS: Use C99 variable-length arrays for stack allocation
-#USE_ALLOCA: Use alloca() for stack allocation
-#If none is defined, then the fallback is a non-threadsafe global array
+# It is strongly recommended to uncomment one of these
+# VAR_ARRAYS: Use C99 variable-length arrays for stack allocation
+# USE_ALLOCA: Use alloca() for stack allocation
+# If none is defined, then the fallback is a non-threadsafe global array
 #CFLAGS += -DUSE_ALLOCA
 #CFLAGS += -DVAR_ARRAYS
+
+# These options affect performance
+# HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion
+# restrict: Don't use the 'restrict' optimization (for pre-C99 compilers)
+#CFLAGS += -DHAVE_LRINTF
+CFLAGS += -Drestrict=
 
 ###################### END OF OPTIONS ######################