| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Intel Inc. All rights reserved. | 2 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 // Non-optimized using actual while loop. | 394 // Non-optimized using actual while loop. |
| 395 CONVOLVE_ONE_SAMPLE; | 395 CONVOLVE_ONE_SAMPLE; |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 dest_p[i++] = sum; | 398 dest_p[i++] = sum; |
| 399 } | 399 } |
| 400 #if defined(ARCH_CPU_X86_FAMILY) | 400 #if defined(ARCH_CPU_X86_FAMILY) |
| 401 } | 401 } |
| 402 #endif | 402 #endif |
| 403 #endif // OS_MACOSX | 403 #endif // OS_MACOSX |
| 404 #undef CONVOLVE_ONE_SAMPLE |
| 404 | 405 |
| 405 // Copy 2nd half of input buffer to 1st half. | 406 // Copy 2nd half of input buffer to 1st half. |
| 406 memcpy(buffer_.Data(), input_p, sizeof(float) * frames_to_process); | 407 memcpy(buffer_.Data(), input_p, sizeof(float) * frames_to_process); |
| 407 } | 408 } |
| 408 | 409 |
| 409 void DirectConvolver::Reset() { | 410 void DirectConvolver::Reset() { |
| 410 buffer_.Zero(); | 411 buffer_.Zero(); |
| 411 } | 412 } |
| 412 | 413 |
| 413 } // namespace blink | 414 } // namespace blink |
| OLD | NEW |