summaryrefslogtreecommitdiff
path: root/test/buffer.h
AgeCommit message (Collapse)Author
2018-09-15cosmetics: normalize include guardsJames Zern
use the recommended format [1] of: <PROJECT>_<PATH>_<FILE>_H_ [1] https://google.github.io/styleguide/cppguide.html#The__define_Guard "All header files should have #define guards to prevent multiple inclusion. The format of the symbol name should be <PROJECT>_<PATH>_<FILE>_H_." Change-Id: I2e8ab0b32fb23c30fa43cff5fec12d043c0d2037
2017-07-05test/buffer.h: move range checking to compilerJohann
Pass low/high values as type T. Out of range values should be caught by static analysis instead. Change-Id: I0a3ee8820af05f4c791ab097626174e2206fa6d5
2017-07-01buffer.h: incorrect RandRange resultsJohann
'low' was promoted to unsigned, triggering a ubsan warning Change-Id: Id49340079d39c105da93cf13e96cf852a93a94ba
2017-06-30buffer.h: use stride_ instead of stride()Johann
Change-Id: Ib51231349bf0ff3e23672762dc7bfa49b5fe4083
2017-06-30testing: ranges for random valuesJohann
Add a method to acm_random.h to generate ranges of values Add a way to call that method to buffer.h Adjust dct_[partial_]test.cc to use it. Change-Id: I8c23ae9d27612c28f050b0e44c41cb4ad2494086
2017-06-28buffer.h: Only allow Init() to be called once.Johann
Change-Id: I041c8b6f314802833c5287a176dbfeec9461b08e
2017-06-09buffer.h: allow declaring an alignmentJohann
x86 simd register operations generally prefer and may require 16 byte alignment. Change-Id: I73ce577a90dc66af60743c5727c36f23200950ba
2017-06-08Revert "buffer.h: use size_t"Johann
This reverts commit f08581c1d010ea95b8cfae686b5c0a64b32519f9. type conversion warnings abound. Change-Id: I41d4c0e7a388e1008bdbc55fefda4bbca3f89f00
2017-06-07buffer.h: add num_elements_Johann
raw_size_ was being incorrectly computed and used Change-Id: Iade45f69964c567ffb258880f26006a96ae5a30d
2017-06-07buffer.h: zero-init all valuesJohann
Change-Id: I18d90658bcd4365d49adcadd6954090b3b399aa8
2017-06-07buffer.h: use size_tJohann
Change-Id: Ieca3f1ef23cd1d7b844ea3ecb054007ed280b04f
2017-06-06buffer.h: split out initJohann
Change-Id: Idfbd2e01714ca9d00525c5aeba78678b43fb0287
2017-06-06buffer.h: Use T for valuesJohann
Change-Id: I2da4110e843b6e361028b921c24b6ca2ea9077d9
2017-01-26Use Buffer class for post proc testsJohann
Add Buffer features for: Setting the buffer to the output of an ACMRandom function. Copying a buffer. Comparing two buffers. Printing two buffers. Change-Id: Ib53fb602451a3abdcee279ea2b65b51fbc02d3df
2017-01-11Create a class for buffers used in testsJohann
Demonstrate its use with the IDCT test. Change-Id: Idf87fe048847c180f13818fd4df916ba4500134b