diff options
author | MITSUNARI Shigeo <[email protected]> | 2011-06-16 06:59:37 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2011-06-16 06:59:37 +0900 |
commit | 8c45c01071356faad63b25cf265c36cdcf72afdf (patch) | |
tree | 8fc964f5815529f0eefd5de0caf3a9e7b9839c8a /sample/quantize.cpp | |
parent | 0e963028222215931169b48aab66dbda160ce10f (diff) | |
download | xbyak-8c45c01071356faad63b25cf265c36cdcf72afdf.tar.gz xbyak-8c45c01071356faad63b25cf265c36cdcf72afdf.zip |
fix __GNUC__PREREQ macro for Mac gcc
Diffstat (limited to 'sample/quantize.cpp')
-rw-r--r-- | sample/quantize.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sample/quantize.cpp b/sample/quantize.cpp index 8816ca2..4834897 100644 --- a/sample/quantize.cpp +++ b/sample/quantize.cpp @@ -1,6 +1,6 @@ /* @author herumi - @date $Date: 2009/12/09 05:40:52 $ + @date $Date: 2011/06/02 02:43:26 $ JPEG quantize sample This program generates a quantization routine by using fast division algorithm in run-time. @@ -182,11 +182,10 @@ int main(int argc, char *argv[]) try { uint32 src[N]; - uint32 src2[N]; uint32 dest[N]; uint32 dest2[N]; for (int i = 0; i < N; i++) { - src2[i] = src[i] = rand() % 2048; + src[i] = rand() % 2048; } Quantize jit(qTbl); @@ -220,5 +219,4 @@ int main(int argc, char *argv[]) } catch (...) { printf("unknown error\n"); } - return 0; } |