Update file headers.

This commit is contained in:
2022-05-28 12:57:21 +01:00
parent 33d59d975e
commit 3c09e60d93
22 changed files with 380 additions and 606 deletions

View File

@@ -1,40 +1,20 @@
// /** ************************************************************************* /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : aaru.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Contains common media types. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// Permission is hereby granted, free of charge, to any person obtaining a * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// copy of this software and associated documentation files (the */
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : aaruformat.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Includes all headers for Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#ifndef LIBAARUFORMAT_AARUFORMAT_H #ifndef LIBAARUFORMAT_AARUFORMAT_H
#define LIBAARUFORMAT_AARUFORMAT_H #define LIBAARUFORMAT_AARUFORMAT_H
@@ -42,7 +28,7 @@
#include "aaruformat/decls.h" #include "aaruformat/decls.h"
#include "aaruformat/enums.h" #include "aaruformat/enums.h"
#include "aaruformat/errors.h" #include "aaruformat/errors.h"
#include "aaruformat/structs.h"
#include "aaruformat/simd.h" #include "aaruformat/simd.h"
#include "aaruformat/structs.h"
#endif // LIBAARUFORMAT_AARUFORMAT_H #endif // LIBAARUFORMAT_AARUFORMAT_H

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : consts.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Contains constants for Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedMacroInspection" #pragma ide diagnostic ignored "OCUnusedMacroInspection"

View File

@@ -1,34 +1,21 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : context.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Describes context to be passed between libaaruformat functions. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#ifndef LIBAARUFORMAT_CONTEXT_H #ifndef LIBAARUFORMAT_CONTEXT_H
#define LIBAARUFORMAT_CONTEXT_H #define LIBAARUFORMAT_CONTEXT_H

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : crc64.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Declares CRC64 constants. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#ifndef LIBAARUFORMAT_CRC64_H #ifndef LIBAARUFORMAT_CRC64_H
#define LIBAARUFORMAT_CRC64_H #define LIBAARUFORMAT_CRC64_H

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : decls.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Declares exportable functions. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#ifndef LIBAARUFORMAT_DECLS_H #ifndef LIBAARUFORMAT_DECLS_H
#define LIBAARUFORMAT_DECLS_H #define LIBAARUFORMAT_DECLS_H

View File

@@ -1,3 +1,21 @@
/*
* This file is part of the Aaru Data Preservation Suite.
* Copyright (c) 2019-2022 Natalia Portillo.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#ifndef LIBAARUFORMAT_ENUMS_H #ifndef LIBAARUFORMAT_ENUMS_H

View File

@@ -1,6 +1,20 @@
// /*
// Created by claunia on 17/03/19. * This file is part of the Aaru Data Preservation Suite.
// * Copyright (c) 2019-2022 Natalia Portillo.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBAARUFORMAT_ERRORS_H #ifndef LIBAARUFORMAT_ERRORS_H
#define LIBAARUFORMAT_ERRORS_H #define LIBAARUFORMAT_ERRORS_H

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : simd.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Declares SIMD constants. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#ifndef LIBAARUFORMAT_SIMD_H #ifndef LIBAARUFORMAT_SIMD_H
#define LIBAARUFORMAT_SIMD_H #define LIBAARUFORMAT_SIMD_H

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : structs.h * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : Disk image plugins. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Contains structures for Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License aint64_t with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : close.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Handles closing Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <errno.h> #include <errno.h>
#include <malloc.h> #include <malloc.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : crc64.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Calculates CRC64-ECMA checksums. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <stdlib.h> #include <stdlib.h>
@@ -127,8 +113,7 @@ AARU_EXPORT uint64_t AARU_CALL aaruf_crc64_data(const uint8_t* data, uint32_t le
crc64_ctx* ctx = aaruf_crc64_init(); crc64_ctx* ctx = aaruf_crc64_init();
uint64_t crc = 0; uint64_t crc = 0;
if(!ctx) if(!ctx) return crc;
return crc;
aaruf_crc64_update(ctx, data, len); aaruf_crc64_update(ctx, data, len);
aaruf_crc64_final(ctx, &crc); aaruf_crc64_final(ctx, &crc);

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : crc64.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Calculates CRC64-ECMA checksums using CLMUL. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#if defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64) || defined(__I386__) || \ #if defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64) || defined(__I386__) || \
defined(__i386__) || defined(__THW_INTEL) || defined(_M_IX86) defined(__i386__) || defined(__THW_INTEL) || defined(_M_IX86)

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : crc64.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Calculates CRC64-ECMA checksums using VMULL. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#if defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(_M_ARM) #if defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(_M_ARM)

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : cst.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : Disk image plugins. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Contains the Claunia Subchannel Transform algorithm. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <malloc.h> #include <malloc.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -1,35 +1,21 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// * ECC algorithm from ECM(c) 2002-2011 Neill Corlett
// Filename : ecc_cd.c *
// Author(s) : Natalia Portillo <claunia@claunia.com> * This library is free software; you can redistribute it and/or modify
// * it under the terms of the GNU Lesser General Public License as
// Component : Disk image plugins. * published by the Free Software Foundation; either version 2.1 of the
// * License, or (at your option) any later version.
// --[ Description ] ---------------------------------------------------------- *
// * This library is distributed in the hope that it will be useful, but
// Contains the CD ECC algorithm. * WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// --[ License ] -------------------------------------------------------------- * Lesser General Public License for more details.
// *
// This library is free software; you can redistribute it and/or modify * You should have received a copy of the GNU Lesser General Public
// it under the terms of the GNU Lesser General Public License as * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// published by the Free Software Foundation; either version 2.1 of the */
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ECC algorithm from ECM(c) 2002-2011 Neill Corlett
// ****************************************************************************/
#include <malloc.h> #include <malloc.h>
#include <stdbool.h> #include <stdbool.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : helpers.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : Disk image plugins. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Contains helpers for Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <aaru.h> #include <aaru.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : identify.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : Disk image plugins. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Identifies Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : open.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Handles opening Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : open.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Handles opening Aaru format disk images. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <malloc.h> #include <malloc.h>
#include <string.h> #include <string.h>

View File

@@ -1,34 +1,20 @@
// /*************************************************************************** /*
// Aaru Data Preservation Suite * This file is part of the Aaru Data Preservation Suite.
// ---------------------------------------------------------------------------- * Copyright (c) 2019-2022 Natalia Portillo.
// *
// Filename : simd.c * This library is free software; you can redistribute it and/or modify
// Author(s) : Natalia Portillo <claunia@claunia.com> * it under the terms of the GNU Lesser General Public License as
// * published by the Free Software Foundation; either version 2.1 of the
// Component : libaaruformat. * License, or (at your option) any later version.
// *
// --[ Description ] ---------------------------------------------------------- * This library is distributed in the hope that it will be useful, but
// * WITHOUT ANY WARRANTY; without even the implied warranty of
// Detects SIMD availability. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// --[ License ] -------------------------------------------------------------- *
// * You should have received a copy of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or modify * License along with this library; if not, see <http://www.gnu.org/licenses/>.
// it under the terms of the GNU Lesser General Public License as */
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -1,6 +1,20 @@
// /*
// Created by claunia on 5/10/21. * This file is part of the Aaru Data Preservation Suite.
// * Copyright (c) 2019-2022 Natalia Portillo.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include <climits> #include <climits>
#include <cstdint> #include <cstdint>