From 6f06d3436dafe1f697eb86ace9cbfd645f0d2439 Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Mon, 25 Jul 2011 13:26:57 -0700 Subject: [PATCH] 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. --- Makefile.draft | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile.draft b/Makefile.draft index 20b178c09..2ee921f6a 100644 --- a/Makefile.draft +++ b/Makefile.draft @@ -1,18 +1,21 @@ #################### 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 ###################### include silk_sources.mk -- GitLab